<?php namespace app\admin\validate;

use think\Validate;

/**
 * 用户验证器
 * Class User
 * @package app\admin\validate
 */
//手册验证->验证规则->属性定义
class Admin extends Validate
{
	protected $rule = [
		'username' => 'require',
		'password'=> 'require',
	];

	protected $message = [
			'username.require' => '用户名称不能为空',
			'password.require' => '用户密码不能为空',
	];
}
